package com.shwread.android.qysw.activity;

import android.support.v4.app.Fragment;

import com.ciko.code.base.BaseLabelActivity;
import com.shwread.android.qysw.fragment.MyOutFragment;
import com.shwread.android.qysw.fragment.MyReceiveFragment;

import java.util.ArrayList;
import java.util.List;

public class ApplyForBusinessTripActivity extends BaseLabelActivity {
    private MyOutFragment myOutFragment;
    private MyReceiveFragment myReceiveFragment;


    private List<Fragment> fragmentList =null;

    @Override
    protected void initLayoutDate() {
        fragmentList = new ArrayList<>();
        myOutFragment =new MyOutFragment("我的外出");
        myReceiveFragment = new MyReceiveFragment("收到的外出");
        fragmentList.add(myOutFragment);
        fragmentList.add(myReceiveFragment);

        String[] fTitle = {"我的外出", "收到的外出"};
        setFragmentList(fragmentList, fTitle);
    }

    @Override
    protected void initTopBar() {
        setTitle("因公外出记录");
        enableNavLeftImg();
    }

    @Override
    protected void initAdapter() {

    }

    @Override
    protected void initListener() {

    }
}
